<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>login</title>
    <link rel="stylesheet" type="text/css" href="./static/css/login.css"/>
    <script type="text/javascript" src="./static/js/include.js?jquery,dvs"></script>
</head>
<script type="text/javascript">
    function doLogin() {
        dvs.ajax({
            url : "/login/doLogin",
            loading : "modal",
            form : "loginForm",
            callback : function(json) {
                if (json.code==200) {
                    window.location.href="/webup";
                }else {
                    dvs.alert(json.message);
                }
            }
        })
    }
</script>
<body>
<form id="loginForm">
<div class="login">
    <h2>用户登录</h2>
    <div class="login_box">
        <input type="text" required="required" name="ut_userid">
        <label>用户名</label>
    </div>
    <div class="login_box">
        <input type="text" required="required" name="ut_role">
        <label>角色名</label>
    </div>
    <div class="login_box">
        <input type="password" required="required" name="ut_password">
        <label>密码</label>
    </div>
    <a href="javascript:void(0);" onclick="doLogin()">
        登录
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </a>
</div>
</form>
</body>
</html>